php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#203203 - 05/26/04 07:16 PM [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Modification Name: Polls... The Way They Were Meant To Be

Author(s): Ian Spence

Description: Makes polls appear in your topic, not in a popup.

Also allows for polls to be called via js, allowing for Poll Content Islands laugh

Demo: http://www.alforadmin.com

Requirements: UBB.classic 6.7

Download Link: http://www.ubbdev.com/ubb/upload/00020028/Poll-TWTWMTBI.zip

Credits: LK for the poll beautification mod, and CC for a lot of help with code

The script can be called the following way.

Code:
<script language="Javascript1.1" type="text/javascript" src="http://yourdomain.com/cgi-bin/poll_ssi.cgi?poll=[pollid]"></script>
Replace [pollid] with the pollid, which can be found by viewing the source code of the topic containing the poll

Top
#203204 - 05/26/04 07:42 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Looks slick, thanks laugh

I'm liking the latest look of your site, congrats on the refinement thumbsup
_________________________
- Allen wavey
- What Drives You?

Top
#203205 - 05/26/04 07:51 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
laugh Thanks. And thank you for not complaining when I stole your blockquote css.

A note to people who want to preview this, log on with UBBDEV / UBBDEV or you'll only be told you can vote tipsy

Top
#203206 - 05/26/04 07:52 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
havoq Offline
Member

Registered: 09/11/01
Posts: 667
Loc: MI
Nice hack, polls look much better that way laugh

I'll agree with Allen here and say your site kicks some ass wink
_________________________
-Jon
I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know wink
Where I continue to hack, even though it's a state of mind

Top
#203207 - 05/27/04 12:34 AM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
RandyM Offline
Spotlight Winner

Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
Very, very nice. I'm happy to see new ideas and old faces.
_________________________
3 time Spotlight winner.
Believe The Lie

Top
#203208 - 05/27/04 07:56 AM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Hello,

I get this error:

Ein Fehler ist aufgetreten:

Can't find string terminator "THAT_PAGE" anywhere before EOF at NonCGIPath/Templates/public_polls.pl line 1045.

Can someone send me the hacked files?
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#203209 - 05/27/04 11:34 AM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
The very last step, instead of

Code:
------
Find:
------

$Footer_Popup
THAT_PAGE


------
Replace With:
------

}
do

Code:
------
Find:
------

$Footer_Popup
THAT_PAGE


------
Add After:
------

}

Top
#203210 - 05/27/04 12:38 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Hi Ian,

I have changed it, but now I can not see anything...

http://www.d-talk.tv/ubb/ultimatebb.php/ubb/get_topic/f/4/t/000027.html
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#203211 - 05/27/04 01:07 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I'll need ftp access to your board to see what's wrong

Top
#203212 - 05/27/04 01:38 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Fixed.

A note to everyone, CHMOD the poll_ssi.cgi to 755, not 777

Top
#203213 - 05/27/04 01:48 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Thanks Ian!

One question:

Is it normal that after voting there is the old pollwindow and after closing it, the whole boardpage is closing?
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#203214 - 05/27/04 02:00 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
leave it to ian to error a chmod on a mod which took so long to write wink ...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#203215 - 05/27/04 02:19 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I finally figured out how to do the Transition with the Thank you page.

Please redo the second step of public_polls.pl.

Then do the new steps,

Code:
------
Find:
------

sub PollThankForVote {
	my $pollid = shift;


------
Add After:
------

	if($in{refer}) {
		my $pickle;
		my $title;

		$in{refer} = $ENV{HTTP_REFERER} if $ENV{HTTP_REFERER} ne "";

		if($in{refer} ne '') {
			$pickle = $in{refer};
		} else {
			$pickle = $ULTIMATEBB{FORM};
		}

		if($in{title} ne '') {
			$title = $in{title};
		} else {
			$title = $vars_config{BBName};
		}

		&Transition($pickle, "Thank you for voting.", $title);

	} else {

------
Find:
------

		$string .= qq(</center>);
	} # end if
	&StandardHTMLPopup($string);

------
Add After:
------

}
Zip updated.

Top
#203216 - 05/27/04 02:31 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Sorry,

Now I get this error:

(RequireCodeNoINC) NonCGIPath/Templates/public_polls.pl: Unmatched right curly bracket at NonCGIPath/Templates/public_polls.pl line 826, at end of line
syntax error at NonCGIPath/Templates/public_polls.pl line 826, near "}"
Compilation failed in require at CGIPath/ubb_lib.cgi line 941.
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#203217 - 05/27/04 02:36 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I said to redo the second step, not remove it entirely

Top
#203218 - 05/27/04 03:12 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
ooops, sorry laugh
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#203219 - 05/27/04 03:19 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Ian, what do I have to change, that it looks like at your board?
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#203220 - 05/28/04 12:22 AM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
mmg Offline
Junior Member

Registered: 07/17/03
Posts: 6
Thanks for the nice mod. When looking at the poll on my site,it is inside the 1st post in the thread. I noticed the poll on your site is above the 1st post. Do have have a modified version or did I mess up the install?

Top
#203221 - 05/28/04 11:33 AM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I have a modified version which was actually a PITA to get to work correctly. The version in this mod appears inside the first post

Top
#203222 - 05/31/04 04:53 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Good job, very good job! laugh (although I liked it better when the colors were by the percentage and not by the order)
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#203223 - 05/31/04 07:11 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
well unless you had 6 choices, and they all had a different amount of votes, so much so that none of the percent ranges had more than one choice in it, you'd never see all the images.

I'm an equal opportunity image shower

Top
#203224 - 07/22/04 06:25 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Delw Offline
Member

Registered: 12/15/01
Posts: 110
Loc: az
WE have been using this mod for about 3-4 weeks now and its great, however I get some members that get this error msg


Quote:
quote:
Error:
Sorry, you do not have permission to vote in this poll.
I looked in there profiles and everything seems fine, can anyone shed any light on this? Like I said just a few people so far have said something

Delw

Top
#203225 - 07/22/04 07:55 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
you said the only place you allow polls is one forum....

do they have permission to vote in that forum?

Top
#203226 - 07/22/04 10:13 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Delw Offline
Member

Registered: 12/15/01
Posts: 110
Loc: az
Yes the have access to that forum, I even rebuilt all the member files.

That was the first thing I checked was the access.


Delw

Top
#203227 - 07/22/04 11:23 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
ok, I'm gonna need access to that forum.

Top
#203228 - 07/23/04 12:09 AM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Delw Offline
Member

Registered: 12/15/01
Posts: 110
Loc: az
your accessed


Delw

Top
#203229 - 07/23/04 12:19 AM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
fixed.

was not a bug with this mod, so no need to update

Top
#203230 - 07/23/04 12:45 AM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Delw Offline
Member

Registered: 12/15/01
Posts: 110
Loc: az
Thanks Ian

next time I guess I will read the junior member a little better. I was thinking it was members under 21 of age.

Thanks Again
Delw

Top
#203231 - 07/28/04 05:12 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Webberver1 Offline
Junior Member

Registered: 07/28/04
Posts: 18
Hi everyone,
I followed the steps to this mod and I am getting this error when I click to post the poll:
An error has occurred:

(RequireCodeNoINC) NonCGIPath/Templates/public_topic_page.pl: syntax error at NonCGIPath/Templates/public_topic_page.pl line 513, near ";="


I went over the install instructions twice and can't get rid of this error. Any ideas on what I am doing wrong?

Top
#203232 - 07/28/04 05:24 PM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
=pod and =cut go on their own lines. try that

Top
#203233 - 10/11/05 12:51 AM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
bryan868 Offline
Member

Registered: 09/18/00
Posts: 273
Does this work on 6.7.3? When I perform the hack I see no poll, the post is just blank.
_________________________
This is the designed behavior.

Top
#203234 - 10/11/05 05:04 AM Re: [6.7] [beta] Polls... The Way They Were Meant To Be
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
it should work fine

Top
Page 1 of 2 1 2 >



Moderator:  Charles, Gizmo 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks